package problem4;

public class Fruitjuice extends Softdrinks{
    double juicecontent;

    public Fruitjuice(String brand, double sugarcontent, double juicecontent) {
        super(brand, sugarcontent);
        this.juicecontent = juicecontent;
    }


    @Override
    String advertisement() {
        return "This product contains sugar and juice.";
    }

    @Override
    String component() {
        return "sugarcontent: " + sugarcontent + " gram "
                + "juicecontent: " + juicecontent + "%";
    }

}
